package com.example.demo.domain;

import org.apache.ibatis.type.Alias;

import java.util.List;

/**
 * @Create:     Space
 * @Time:       2020-06-10 18:47:00
 * @Describe:   商品信息
 */
@Alias("goods")
public class Goods
{
    private Integer id;
    private String name;
    //进价
    private Double buying_price;
    //售价
    private Double selling_price;
    //产地
    private String place;
    //状态
    private Integer state;
    private String times;
    //类型
    private String type;

    private List<Picture> pictures;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getBuying_price() {
        return buying_price;
    }

    public void setBuying_price(Double buying_price) {
        this.buying_price = buying_price;
    }

    public Double getSelling_price() {
        return selling_price;
    }

    public void setSelling_price(Double selling_price) {
        this.selling_price = selling_price;
    }

    public String getPlace() {
        return place;
    }

    public void setPlace(String place) {
        this.place = place;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getTimes() {
        return times;
    }

    public void setTimes(String times) {
        this.times = times;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public List<Picture> getPictures() {
        return pictures;
    }

    public void setPictures(List<Picture> pictures) {
        this.pictures = pictures;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", buying_price=" + buying_price +
                ", selling_price=" + selling_price +
                ", place='" + place + '\'' +
                ", state=" + state +
                ", times='" + times + '\'' +
                ", type='" + type + '\'' +
                ", pictures=" + pictures +
                '}';
    }
}
